home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Technotools
/
Technotools (Chestnut CD-ROM)(1993).ISO
/
lang_c
/
cpptut22
/
car.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
1992-01-19
|
366b
|
24 lines
// Chapter 7 - Program 5
#include "car.h"
void car::initialize(int in_wheels, float in_weight, int people)
{
passenger_load = people;
wheels = in_wheels;
weight = in_weight;
}
int car::passengers(void)
{
return passenger_load;
}
// Result of execution
//
// (this file cannot be executed)